{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nvar _excluded = [\"children\", \"className\", \"component\", \"onChange\", \"showLabels\", \"value\"];\nimport * as React from 'react';\nimport { isFragment } from 'react-is';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { unstable_composeClasses as composeClasses } from '@mui/base';\nimport styled from '../styles/styled';\nimport useThemeProps from '../styles/useThemeProps';\nimport { getBottomNavigationUtilityClass } from './bottomNavigationClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar useUtilityClasses = function useUtilityClasses(ownerState) {\n  var classes = ownerState.classes;\n  var slots = {\n    root: ['root']\n  };\n  return composeClasses(slots, getBottomNavigationUtilityClass, classes);\n};\nvar BottomNavigationRoot = styled('div', {\n  name: 'MuiBottomNavigation',\n  slot: 'Root',\n  overridesResolver: function overridesResolver(props, styles) {\n    return styles.root;\n  }\n})(function (_ref) {\n  var theme = _ref.theme;\n  return {\n    display: 'flex',\n    justifyContent: 'center',\n    height: 56,\n    backgroundColor: (theme.vars || theme).palette.background.paper\n  };\n});\nvar BottomNavigation = /*#__PURE__*/React.forwardRef(function BottomNavigation(inProps, ref) {\n  var props = useThemeProps({\n    props: inProps,\n    name: 'MuiBottomNavigation'\n  });\n  var children = props.children,\n    className = props.className,\n    _props$component = props.component,\n    component = _props$component === void 0 ? 'div' : _props$component,\n    onChange = props.onChange,\n    _props$showLabels = props.showLabels,\n    showLabels = _props$showLabels === void 0 ? false : _props$showLabels,\n    value = props.value,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  var ownerState = _extends({}, props, {\n    component: component,\n    showLabels: showLabels\n  });\n  var classes = useUtilityClasses(ownerState);\n  return /*#__PURE__*/_jsx(BottomNavigationRoot, _extends({\n    as: component,\n    className: clsx(classes.root, className),\n    ref: ref,\n    ownerState: ownerState\n  }, other, {\n    children: React.Children.map(children, function (child, childIndex) {\n      if (! /*#__PURE__*/React.isValidElement(child)) {\n        return null;\n      }\n      if (process.env.NODE_ENV !== 'production') {\n        if (isFragment(child)) {\n          console.error([\"MUI: The BottomNavigation component doesn't accept a Fragment as a child.\", 'Consider providing an array instead.'].join('\\n'));\n        }\n      }\n      var childValue = child.props.value === undefined ? childIndex : child.props.value;\n      return /*#__PURE__*/React.cloneElement(child, {\n        selected: childValue === value,\n        showLabel: child.props.showLabel !== undefined ? child.props.showLabel : showLabels,\n        value: childValue,\n        onChange: onChange\n      });\n    })\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? BottomNavigation.propTypes\n/* remove-proptypes */ = {\n  // ----------------------------- Warning --------------------------------\n  // | These PropTypes are generated from the TypeScript type definitions |\n  // |     To update them edit the d.ts file and run \"yarn proptypes\"     |\n  // ----------------------------------------------------------------------\n\n  /**\n   * The content of the component.\n   */\n  children: PropTypes.node,\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * Callback fired when the value changes.\n   *\n   * @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.\n   * @param {any} value We default to the index of the child.\n   */\n  onChange: PropTypes.func,\n  /**\n   * If `true`, all `BottomNavigationAction`s will show their labels.\n   * By default, only the selected `BottomNavigationAction` will show its label.\n   * @default false\n   */\n  showLabels: PropTypes.bool,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * The value of the currently selected `BottomNavigationAction`.\n   */\n  value: PropTypes.any\n} : void 0;\nexport default BottomNavigation;","map":{"version":3,"names":["_extends","_objectWithoutPropertiesLoose","_excluded","React","isFragment","PropTypes","clsx","unstable_composeClasses","composeClasses","styled","useThemeProps","getBottomNavigationUtilityClass","jsx","_jsx","useUtilityClasses","ownerState","classes","slots","root","BottomNavigationRoot","name","slot","overridesResolver","props","styles","theme","display","justifyContent","height","backgroundColor","vars","palette","background","paper","BottomNavigation","forwardRef","inProps","ref","children","className","component","onChange","showLabels","value","other","as","Children","map","child","childIndex","isValidElement","process","env","NODE_ENV","console","error","join","childValue","undefined","cloneElement","selected","showLabel","propTypes","node","object","string","elementType","func","bool","sx","oneOfType","arrayOf","any"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@mui/material/esm/BottomNavigation/BottomNavigation.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"children\", \"className\", \"component\", \"onChange\", \"showLabels\", \"value\"];\nimport * as React from 'react';\nimport { isFragment } from 'react-is';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { unstable_composeClasses as composeClasses } from '@mui/base';\nimport styled from '../styles/styled';\nimport useThemeProps from '../styles/useThemeProps';\nimport { getBottomNavigationUtilityClass } from './bottomNavigationClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n\nconst useUtilityClasses = ownerState => {\n  const {\n    classes\n  } = ownerState;\n  const slots = {\n    root: ['root']\n  };\n  return composeClasses(slots, getBottomNavigationUtilityClass, classes);\n};\n\nconst BottomNavigationRoot = styled('div', {\n  name: 'MuiBottomNavigation',\n  slot: 'Root',\n  overridesResolver: (props, styles) => styles.root\n})(({\n  theme\n}) => ({\n  display: 'flex',\n  justifyContent: 'center',\n  height: 56,\n  backgroundColor: (theme.vars || theme).palette.background.paper\n}));\nconst BottomNavigation = /*#__PURE__*/React.forwardRef(function BottomNavigation(inProps, ref) {\n  const props = useThemeProps({\n    props: inProps,\n    name: 'MuiBottomNavigation'\n  });\n\n  const {\n    children,\n    className,\n    component = 'div',\n    onChange,\n    showLabels = false,\n    value\n  } = props,\n        other = _objectWithoutPropertiesLoose(props, _excluded);\n\n  const ownerState = _extends({}, props, {\n    component,\n    showLabels\n  });\n\n  const classes = useUtilityClasses(ownerState);\n  return /*#__PURE__*/_jsx(BottomNavigationRoot, _extends({\n    as: component,\n    className: clsx(classes.root, className),\n    ref: ref,\n    ownerState: ownerState\n  }, other, {\n    children: React.Children.map(children, (child, childIndex) => {\n      if (! /*#__PURE__*/React.isValidElement(child)) {\n        return null;\n      }\n\n      if (process.env.NODE_ENV !== 'production') {\n        if (isFragment(child)) {\n          console.error([\"MUI: The BottomNavigation component doesn't accept a Fragment as a child.\", 'Consider providing an array instead.'].join('\\n'));\n        }\n      }\n\n      const childValue = child.props.value === undefined ? childIndex : child.props.value;\n      return /*#__PURE__*/React.cloneElement(child, {\n        selected: childValue === value,\n        showLabel: child.props.showLabel !== undefined ? child.props.showLabel : showLabels,\n        value: childValue,\n        onChange\n      });\n    })\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? BottomNavigation.propTypes\n/* remove-proptypes */\n= {\n  // ----------------------------- Warning --------------------------------\n  // | These PropTypes are generated from the TypeScript type definitions |\n  // |     To update them edit the d.ts file and run \"yarn proptypes\"     |\n  // ----------------------------------------------------------------------\n\n  /**\n   * The content of the component.\n   */\n  children: PropTypes.node,\n\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n\n  /**\n   * Callback fired when the value changes.\n   *\n   * @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.\n   * @param {any} value We default to the index of the child.\n   */\n  onChange: PropTypes.func,\n\n  /**\n   * If `true`, all `BottomNavigationAction`s will show their labels.\n   * By default, only the selected `BottomNavigationAction` will show its label.\n   * @default false\n   */\n  showLabels: PropTypes.bool,\n\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n\n  /**\n   * The value of the currently selected `BottomNavigationAction`.\n   */\n  value: PropTypes.any\n} : void 0;\nexport default BottomNavigation;"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,oCAAoC;AACzD,OAAOC,6BAA6B,MAAM,yDAAyD;AACnG,IAAMC,SAAS,GAAG,CAAC,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,OAAO,CAAC;AAC3F,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,QAAQ,UAAU;AACrC,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,IAAI,MAAM,MAAM;AACvB,SAASC,uBAAuB,IAAIC,cAAc,QAAQ,WAAW;AACrE,OAAOC,MAAM,MAAM,kBAAkB;AACrC,OAAOC,aAAa,MAAM,yBAAyB;AACnD,SAASC,+BAA+B,QAAQ,2BAA2B;AAC3E,SAASC,GAAG,IAAIC,IAAI,QAAQ,mBAAmB;AAE/C,IAAMC,iBAAiB,GAAG,SAApBA,iBAAiB,CAAGC,UAAU,EAAI;EACtC,IACEC,OAAO,GACLD,UAAU,CADZC,OAAO;EAET,IAAMC,KAAK,GAAG;IACZC,IAAI,EAAE,CAAC,MAAM;EACf,CAAC;EACD,OAAOV,cAAc,CAACS,KAAK,EAAEN,+BAA+B,EAAEK,OAAO,CAAC;AACxE,CAAC;AAED,IAAMG,oBAAoB,GAAGV,MAAM,CAAC,KAAK,EAAE;EACzCW,IAAI,EAAE,qBAAqB;EAC3BC,IAAI,EAAE,MAAM;EACZC,iBAAiB,EAAE,2BAACC,KAAK,EAAEC,MAAM;IAAA,OAAKA,MAAM,CAACN,IAAI;EAAA;AACnD,CAAC,CAAC,CAAC;EAAA,IACDO,KAAK,QAALA,KAAK;EAA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